package com.ztman.router.common.view;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.ztman.router.common.R;
import com.ztman.router.common.base.BaseActivity;
import com.ztman.router.common.dagger.contract.SplashContract;
import com.ztman.router.common.presenter.present_obj_.SplashPresenter;

/**
 * @Title:SplashActivity
 * @Package:com.ztman.router.common.view
 * @Description:启动页<闪屏页>
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/5/149:52
 */

public class SplashActivity extends BaseActivity<SplashPresenter> implements SplashContract.View {

    //    @BindView(R.id.lo)
    Button oAnimation;

    @Override
    public void thenGoToMainActivity() {

    }

    @Override
    protected int setLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void initEventAll() {
        oAnimation = (Button) findViewById(R.id.button);
        oAnimation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startActivity(new Intent(SplashActivity.this, TopActivity.class));
            }
        });

    }

    @Override
    protected void initInject() {
//        getActivityComponent().getActivity();
        getActivityComponent().inject(SplashActivity.this);
    }

}
